﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using SignalR;
using EvincePayroll.Data;
using System.Web.Security;
using EvinceUI.Controllers;
namespace EvinceUI.Helper   
{
    public class UserIdClientIdFactory: IConnectionIdGenerator
    {
        public string GenerateConnectionId(IRequest request)
        {
            // Generates user GUID Id to identify each user with a unique id
            //var temp = Membership.GetUser().ProviderUserKey.ToString();
            AccountController act = new AccountController();
            string userId=act.GetUserName();
            return userId;
            //return "";
        }
    }
}